Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Agent Namespace / Packager Class / SendEmail Method / SendEmail(Predicate<SessionSummary>,Boolean,String,String,String,String,Int32,Boolean,String,String) Method
A delegate to evaluate sessions and determine which ones to send.
True to have every included session marked as read upon successful completion.
Optional. A subject line for the email. If left empty a subject line will be generated.
Optional. The email address the package will appear to come from. If empty the destination address will be used.
Optional. The email address to send the package to. If empty the application configuration value will be used.
The full DNS name of the SMTP server to use to relay the mail message.
Optional. The TCP/IP Port number to connect to the server on. Use 0 for the default configured port.
True to encrypt the server communication with Secure Sockets Layer.
Optional. A user name to use instead of the current windows user credentials to communicate with the email server.
Optional. A password to use for the user name for credentials to communicate with the email server.

SendEmail(Predicate<SessionSummary>,Boolean,String,String,String,String,Int32,Boolean,String,String) Method
Send the completed package overriding the server connection information stored in the configuration, including port and SSL.
Syntax

Parameters

sessionMatchPredicate
A delegate to evaluate sessions and determine which ones to send.
markAsRead
True to have every included session marked as read upon successful completion.
emailSubject
Optional. A subject line for the email. If left empty a subject line will be generated.
fromAddress
Optional. The email address the package will appear to come from. If empty the destination address will be used.
destinationAddress
Optional. The email address to send the package to. If empty the application configuration value will be used.
emailServer
The full DNS name of the SMTP server to use to relay the mail message.
serverPort
Optional. The TCP/IP Port number to connect to the server on. Use 0 for the default configured port.
useSsl
True to encrypt the server communication with Secure Sockets Layer.
emailServerUser
Optional. A user name to use instead of the current windows user credentials to communicate with the email server.
emailServerPassword
Optional. A password to use for the user name for credentials to communicate with the email server.
Exceptions
ExceptionDescription
Indicates a failure to generate the package.
Indicates a failure to send the email once the package was created.
Remarks
Multiple criteria can be specified and all matching sessions will be sent. Sessions that match more than one item will be sent only once. All criteria are considered inclusive, adding the sessions they match.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also